import request from "@/utils/request";


export function list(params){
    return request({
        url:'/notice/page',
        method:'get',
        params:params
    })
}

export function delNotice(id){
    return request({
        url:'/notice/delete/'+id,
        method:'delete'
    })
}

export function deleteBatch(ids){
    return request({
        url:'/notice/deleteBatch',
        method:'post',
        data:ids
    })
}

export function edit(data){
    return request({
        url:'/notice/edit',
        method:'post',
        data:data
    })
}


export function saveNotice(data){
    return request({
        url:'/notice/saveNotice',
        method:'post',
        data:data
    })
}